package com.ruipengkj.commons.util.jna;


import com.dianlian.util.card.CardUtil;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-8-5
 * Time: 下午3:56
 * To change this template use File | Settings | File Templates.
 */
public class test {
    public static void main(String[] argv) throws Exception {
        CardUtil cu = new CardUtil(){
        	protected void send(String temo){
        		System.out.println(temo);
        	}
        };
//        发卡
//        cu.sendCard("001", "006", "13434313536", "Jason");
        cu.start();
//        cu.readCard();
//        Thread.currentThread().join();
    	
//    	ApplicationContext.CardUtilThread.setFlag(false);// 停止之前线程
//    	ApplicationContext.CardUtilThread = new CardUtil() {// 重新定义线程
//    		@Override
//    		protected void send(String drive) {
//    			super.send(drive);
//    		}
//    	};
//    	ApplicationContext.CardUtilThread.startOn(new JTextField());// 启动线程/
//    	ApplicationContext.CardUtilThread.start();
    }
}
